package com.xxh.log;


import org.springframework.aop.MethodBeforeAdvice;

import java.lang.reflect.Method;

public class testLog implements MethodBeforeAdvice {

    /**
     *
     * @param method 目标对象的方法
     * @param objects 目标对象的方法参数
     * @param o 目标对象
     * @throws Throwable
     */
    @Override
    public void before(Method method, Object[] objects, Object o) throws Throwable {

        System.out.println("before log  "+o.getClass().getName()+"执行了："+method.getName());
    }
}
